<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字体属性练习</title>
    <style>
        body {
            font-family: "Microsoft Yahei", Arial, "微软雅黑";
            font-size: 16px;
        }

        h2 {
            font-size: 18px;
        }

        .bold {
            font-weight: 700;
            font-style: italic;
        }

        .boldh {
            font: italic 700 18px/25px "Microsoft Yahei";
        }
    </style>
</head>

<body>
    <h2>我的记事本</h2>
    <p>第一段</p>
    <p>第二段</p>
    <p class="bold">第三段</p>
    <p class="boldh">第四段</p>
</body>

</html>